package com.example.controller;

import com.example.config.ResponseMessage;
import com.example.service.NodeServiceImpl;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/code")
public class NodeController {

    @Resource
    NodeServiceImpl nodeService;

    /**
     * 获取父子节点
     */
    @GetMapping("/getGamePoint")
    public ResponseMessage getGamePoint() {
        return ResponseMessage.ok(nodeService.getGamePoint());
    }

}
